<template>
  <el-dialog title="修改收货人信息" :visible.sync="receiverDialogVisible" width="40%">
    <el-form :model="receiverInfo" ref="receiverInfoForm" label-width="150px">
      <el-form-item label="收货人姓名：">
        <el-input v-model="receiverInfo.receiverName" style="width: 200px"></el-input>
      </el-form-item>
      <el-form-item label="手机号码：">
        <el-input v-model="receiverInfo.receiverPhone" style="width: 200px"></el-input>
      </el-form-item>
      <el-form-item label="邮政编码：">
        <el-input v-model="receiverInfo.receiverPostCode" style="width: 200px"></el-input>
      </el-form-item>
      <el-form-item label="所在区域：">
        <v-distpicker
          :province="receiverInfo.receiverProvince"
          :city="receiverInfo.receiverCity"
          :area="receiverInfo.receiverRegion"
          @selected="onSelectRegion"
        ></v-distpicker>
      </el-form-item>
      <el-form-item label="详细地址：">
        <el-input v-model="receiverInfo.receiverDetailAddress" type="textarea" rows="3"></el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="receiverDialogVisible = false">取 消</el-button>
      <el-button type="primary" @click="handleUpdateReceiverInfo">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    receiverDialogVisible: ""
  },
  data() {
    return {
      receiverInfo: {}
    };
  },
  methods: {
    hidden() {
      this.receiverInfo = {};
      this.$emit("hidden");
    },
    handleUpdateReceiverInfo() {}
  }
};
</script>

<style>
</style>